<style>
    /* IE has layout issues when sorting (see #5413) */
    .group {zoom: 1}
</style>
<script>
    $(document).ready(function(){
        //$("#accordion").tooltip();
        // $( document ).tooltip({
          // disabled: true
        // });
        $( "#accordion" ).accordion({
            header: "> div > h3",
            heightStyle: "content",
            collapsible: true
        }).sortable({
            axis: "y",
            handle: "h3",
            stop: function( event, ui ) {
                // IE doesn't register the blur when sorting
                // so trigger focusout handlers to remove .ui-state-focus
                ui.item.children( "h3" ).triggerHandler( "focusout" );
            }
        });
        
        $("#accordion li>a").click(function() {
            var this_h3_dst = "/" + $(this).closest("ul").siblings("h3").attr("aria-dst");
            var idxOf = window.location.href.indexOf(this_h3_dst);
            if(-1 == idxOf) {
                window.location = "/accHestia/src/view/feature/" + this_h3_dst;
            }
        });
    });
</script>
<div id="accordion">
    <?php if ("admin" == $_SESSION["loginedId"]) { ?>
        <div class="group">
            <h3 class="leftmenu">系统管理</h3>
            <ul>
                <li><a href="#" id= "iSysMgr" title="对操作权限指定等">操作员管理</a></li>
                <li><a href="#" title="系统参数的各种设定"  style="color:gray;">系统管理</a></li>
            </ul>
        </div>
    <?php } ?>

    <div class="group">
        <h3 class="leftmenu" id="id_m1_voch_manage" aria-dst="vochManage">凭证管理</h3>
        <ul>
            <li><a href="#" id= "id_lnav_newVoch" title="增加一条新凭证">凭证录入</a></li>
            <li><a href="#" title="审核凭证" style="color:gray;">凭证审核</a></li>
            <li><a href="#" title="过账凭证" style="color:gray;">凭证过账</a></li>
            <li><a href="#" id="id_lnav_vochQeury" title="查询凭证">凭证查询</a></li>
            <li><a href="#" title="汇总凭证" style="color:gray;">凭证汇总</a></li>
            <li><a href="#" title="模式模板" style="color:gray;">模式凭证</a></li>
            <li><a href="#" title="检查凭证" style="color:gray;">凭证检查</a></li>
        </ul>
    </div>
    <div class="group">
        <h3 class="leftmenu" id="id_m1_book">账簿</h3>
        <ul>
            <li><a href="#" title="总分账" style="color:gray;">总账</a></li>
            <li><a href="#" title="明细账" style="color:gray;">明细账</a></li>
            <li><a href="#" title="多栏账" style="color:gray;">多栏账</a></li>
            <li><a href="#" title="项目账" style="color:gray;">项目账</a></li>
        </ul>
    </div>
    <div class="group">
        <h3 class="leftmenu" id="id_m1_report">报表</h3>
        <ul>
            <li><a href="#" title="试算平衡表" style="color:gray;">试算平衡表</a></li>
            <li><a href="#" title="日报表" style="color:gray;">日报表</a></li>
            <li><a href="#" title="自定义报表" style="color:gray;">自定义报表</a></li>
            <li><a href="#" title="科目余额" style="color:gray;">科目余额表</a></li>
        </ul>
    </div>
    <div class="group">
        <h3 class="leftmenu" id="id_m1_month_last">期末处理</h3>
        <ul>
            <li><a href="#" title="结转损益" style="color:gray;">结转损益</a></li>
            <li><a href="#" title="自动转账" style="color:gray;">自动转账</a></li>
            <li><a href="#" title="期末结账" style="color:gray;">期末结账</a></li>
            <li><a href="#" title="科目余额" style="color:gray;">科目余额表</a></li>
        </ul>
    </div>
    <div class="group">
        <h3 class="leftmenu" id="id_m1_salary">工资模块</h3>
        <ul>
            <li><a href="#" title="核算方法" style="color:gray;">核算方法</a></li>
            <li><a href="#" title="XX" style="color:gray;">数据录入</a></li>
            <li><a href="#" title="XX" style="color:gray;">费用分配</a></li>
            <li><a href="#" title="XX" style="color:gray;">报表输出</a></li>
        </ul>
    </div>
    <div class="group">
        <h3 class="leftmenu" id="id_m1_capital">固定资产</h3>
        <ul>
            <li><a href="#" title="XXX" style="color:gray;">变动资料录入</a></li>
            <li><a href="#" title="XX" style="color:gray;">月工作量录入</a></li>
            <li><a href="#" title="XX" style="color:gray;">计提折旧</a></li>
            <li><a href="#" title="XX" style="color:gray;">变更资料查询</a></li>
            <li><a href="#" title="XX" style="color:gray;">报表输出</a></li>
        </ul>
    </div>
    <div class="group">
        <h3 class="leftmenu" id="id_m1_financial_ana">财务分析</h3>
        <ul>
            <li><a href="#" title="XXXX" style="color:gray;">财务状况</a></li>
            <li><a href="#" title="XXXX" style="color:gray;">损益分析</a></li>
            <li><a href="#" title="XXXX" style="color:gray;">简易报表</a></li>
            <li><a href="#" title="XXXX" style="color:gray;">财务指标</a></li>
        </ul>
    </div>
    <div class="group">
        <h3 class="leftmenu" id="id_m1_cashier">出纳模块</h3>
        <ul>
            <li><a href="#" title="初始调协" style="color:gray;">初始设置</a></li>
            <li><a href="#" title="日常处理" style="color:gray;">日常处理</a></li>
            <li><a href="#" title="出纳扎账" style="color:gray;">出纳扎账</a></li>
            <li><a href="#" title="出纳报表" style="color:gray;">出纳报表</a></li>
            <li><a href="#" title="支票管理" style="color:gray;">支票管理</a></li>
        </ul>
    </div>
    <div class="group">
        <h3 class="leftmenu" id="id_m1_current">往来</h3>
        <ul>
            <li><a href="#" title="核销往来业务" style="color:gray;">核销往来业务</a></li>
            <li><a href="#" title="往来对账单" style="color:gray;">往来对账单</a></li>
            <li><a href="#" title="账龄" style="color:gray;">账龄分析表</a></li>
            <li><a href="#" title="科目余额" style="color:gray;">科目余额表</a></li>
        </ul>
    </div>
    <div class="group">
        <h3 class="leftmenu" id="id_m1_acc_setting" aria-dst="accSetting">设置</h3>
        <ul>
            <li><a href="#" title="会计科目" style="color:gray;">会计科目</a></li>
            <li><a href="#" title="核算项目" style="color:gray;">核算项目</a></li>
            <li><a href="#" title="币种" style="color:gray;">币别</a></li>
            <li><a href="#" title="账套选项" style="color:gray;">账套选项</a></li>
            <li><a href="#" id="id_todo1" title="操作日志">上机日志</a></li>
        </ul>
    </div>
</div>